package com.example.dao;

import com.example.entity.Order;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface OrderDao {
    int insertOrder(Order order);
    Order getOrderById(@Param("order_id") Integer order_id);

    // 新增方法
    List<Order> getOrdersByRequesterId(@Param("requester_id") Integer requesterId);
    List<Order> getOrdersByProviderId(@Param("provider_id") Integer providerId);
    List<Order> getAllOrders();
}